<ion-app>
  <ion-header>
    <ion-toolbar>
      <ion-buttons slot="start">
        <ion-back-button defaultHref="/home" text="Back" color="primary"></ion-back-button>
      </ion-buttons>
      <ion-title>Scan-Code</ion-title>
    </ion-toolbar>
  </ion-header>

  <ion-content class="ion-padding">
    <div id="barcode-scanner"></div>
    <ion-button (click)="startScan()">Start Scan</ion-button>
    <div *ngIf="scannedCode">
      Scanned Code: {{ scannedCode }}
    </div>
  </ion-content>

</ion-app>